/**
 * ResizeFilterParameter.java
 * 
 * @date: 2012-02-15
 * @author: Xiaoyu Guo (MUN# 200982155)
 * This file is part of the course project for COMP 6752, 
 * Application of Computer Graphics. All the file is written
 * by myself.
 */
package mun.cs6752.project.filter.resize;

import mun.cs6752.project.filter.interfaces.IImageFilterParameter;

/**
 * @author Xiaoyu Guo
 *
 */
public class ResizeFilterParameter implements IImageFilterParameter {
    private int newWidth;
    private int newHeight;
    private ResizeMethod method;
    
    public ResizeFilterParameter(int newWidth, int newHeight, ResizeMethod method){
        this.newWidth = newWidth;
        this.newHeight = newHeight;
        this.method = method;
    }
    
    public enum ResizeMethod{
        NearestNeighbour,
        Bilinear,
        Bicubic
    }

    public int getNewWidth() {
        return newWidth;
    }

    public void setNewWidth(int newWidth) {
        this.newWidth = newWidth;
    }

    public int getNewHeight() {
        return newHeight;
    }

    public void setNewHeight(int newHeight) {
        this.newHeight = newHeight;
    }

    public ResizeMethod getMethod() {
        return method;
    }

    public void setMethod(ResizeMethod method) {
        this.method = method;
    }
}
